package org.opsli.core.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;

@Slf4j
@Component
public class DYCUtils {

    /**
     * 从ids中获取id
     * @param orgIds
     * @return
     */
    public static String getShopId(String orgIds){
        String id = "0";
        if(orgIds != null && orgIds.length() > 1){
            String[] ids = orgIds.split(",");
            id = ids[1];
        }
        return id;
    }
}
